From bf563779d016f1dfbcfe8354f6729d634975241b Mon Sep 17 00:00:00 2001 From: james_sherring Date: Fri, 5 Dec 2003 00:12:19 +0000 Subject: [PATCH] fixed bad strcpy causing coredump with jlps.axe --- st2gpx/src/writepcx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/st2gpx/src/writepcx.c b/st2gpx/src/writepcx.c index 16d293572..89ae0f03b 100644 --- a/st2gpx/src/writepcx.c +++ b/st2gpx/src/writepcx.c @@ -350,9 +350,9 @@ void pcx5_write_jour_pt(FILE* file, struct journey * jour, struct jour_rtept * r strpad(timedate, 19); - strcpy(desc, rtept->text1); + memcpy(desc, rtept->text1,39); strpad(desc, 40); - + pcx5_write_pt(file, pt_type, rtept->garmin_ident, @@ -363,6 +363,7 @@ void pcx5_write_jour_pt(FILE* file, struct journey * jour, struct jour_rtept * r desc, proximity, symbol); + // } // else if(pt_type==GAR_RTE) // { -- 2.30.2